<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">

<head>
    <th:block th:include="include :: header('修改报表')" />
</head>

<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-purchasereport-edit" th:object="${purchaseReport}">
            <div class="form-group">
                <label class="col-sm-3 control-label">报表单号：</label>
                <div class="col-sm-8">
                    <input name="purchaseReportId" th:field="*{purchaseReportId}" class="form-control" type="text"
                        disabled>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">供应商号：</label>
                <div class="col-sm-8">
                    <input name="reportId" th:field="*{supplierId}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品号：</label>
                <div class="col-sm-8">
                    <input name="barCode" th:field="*{barCode}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">数量：</label>
                <div class="col-sm-8">
                    <input name="quantity" th:field="*{quantity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">申请人：</label>
                <div class="col-sm-8">
                    <input name="application" th:field="*{application}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/purchasereport";
        $("#form-purchasereport-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-purchasereport-edit').serialize());
            }
        }
    </script>
</body>

</html>